class Config:
    SQLALCHEMY_TRACK_MODIFICATIONS = False
    # 查询时会显示原始SQL语句
    SQLALCHEMY_ECHO = False
    MAIL_SERVER = 'smtp.126.com'
    MAIL_USERNAME = 'gongnanxiong235@126.com'
    MAIL_PASSWORD = 'yuhan235'
    # MAIL_PORT = 465


class TestConfig(Config):
    SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://root:Yuhan235@47.98.117.129:3306/testpf'
    REDIS_URL = "redis://:yuhan235@47.98.117.129:6379/0"


class DevConfig(Config):
    SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://root:Yuhan235@47.98.117.129:3306/testpf'
    REDIS_URL = "redis://:yuhan235@47.98.117.129:6379/0"


app_config = {
    'test': TestConfig,
    'dev': DevConfig
}
